{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}" xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="robots" content="noindex, nofollow" />
        <title>{% block head_title %}{% endblock %} | {% if site_name %}{{ site_name }}{% endif %} Newsroom</title>
        <link rel="stylesheet" href="{{ MEDIA_URL }}css/screen.css" />
        <link rel="stylesheet" href="{{ MEDIA_URL }}css/firefox.css" />
        <link rel="stylesheet" href="{{ MEDIA_URL }}css/forms.css" />
        <link rel="stylesheet" href="{{ MEDIA_URL }}themes/blue/css/blue.css" />
        <link rel="stylesheet" href="{{ MEDIA_URL }}css/cupertino/jquery-ui-1.7.1.custom.css" />
        <link rel="stylesheet" href="{{ MEDIA_URL }}css/960/960.css" />
        <script type="text/javascript" src="{{ MEDIA_URL }}js/tiny_mce/tiny_mce.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}js/libs/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}js/libs/json.class.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}js/libs/jquery-ui-1.7.1.custom.min.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}js/libs/jquery.form.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}common/js/lightbox/thickbox.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}js/widget.class.js"></script>
        <script type="text/javascript" src="{{ MEDIA_URL }}js/media.class.js"></script>
        <link rel="stylesheet" href="{{ MEDIA_URL }}common/js/lightbox/thickbox.css" />

        <script type="text/javascript" src="{{ MEDIA_URL }}js/global.js"></script>
        {% block extra_head_base %}
            {% block extra_head %}{% endblock %}
        {% endblock %}
        <script type="text/javascript">
          $(document).ready(function(){
            {% block jquery %}{% endblock %}
          });
        </script>
    </head>

    <body>
        {% if site_wide_announcements %}
            <div id="site_wide_announcements">
                <ul>
                    {% for announcement in site_wide_announcements %}
                    <li>
                        <a href="{{ announcement.get_absolute_url }}">{{ announcement }}</a> -
                        <a href="{% url announcement_hide announcement.pk %}?next={{ request.path }}">{% trans "Hide announcement" %}</a>
                    </li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}

        <div id="header">
        <div id="dashb" class="pwrapper">
            <span id="dashb-info">
                {% block login %}{% endblock %}{% block locale_switcher %}{% endblock %}
            </span>
        </div>

        {% block navigation %}
        <div id="navmenu" class="pwrapper">
            <div>
                {% block logo_link_image %}{% endblock %}

                <ul class="nav-dash" {% block tab_id %}{% endblock %}>
                    {% block tabs %}{% endblock %}
                </ul>

                <ul id="nav-my">
                    {% block sec_navigation %}{% endblock %}
                </ul>
                <br class="clearboth" />
            </div>
        </div>
        {% endblock %}
    </div>

    <div id="content">
        {% if messages %}
            <ul id="messages">
                {% for message in messages %}
                <li><a href="" title="{% trans "clear" %}"><small>{% trans "clear" %}</small></a> {{ message }}</li>
                {% endfor %}
            </ul>
        {% endif %}
        {% if form.errors %}
            <ul id="messages" class="errors">
                <li><a href="" title="{% trans "clear" %}"><small>{% trans "clear " %}</small></a> Shoot, form didn't validate, please take a look at the form.</a></li>
            </ul>
        {% endif %}
        {% block subnav-outer %}
        <div id="content-action">
            {% block subnav %}&nbsp;{% endblock %}
        </div>
        {% endblock %}
        <div id="content-data">
            {% block body %}
            <img src="{{ STATIC_URL }}tmp/entry_list.png" />
            {% endblock %}
        </div>
        <br class="clearboth" />
    </div>

    <div id="footer" class="wrapper">
    {% block footer %}{% endblock %}
    </div>
    {% block extra_body_base %}
        {% block extra_body %}{% endblock %}
    {% endblock %}
</body>
</html>
